
public class Node<E> {
private	Node<E> next;
private	Node<E> prev; 
private	E data;
	
	Node(){}
	Node (E a){data=a;}
	
	void setData(E a){data=a;}
	
	void setNext(Node n){next=n;}
	
	void setPrev(Node p){prev=p;}
	
	Node getNext(){return next;}
	
	Node getPrev(){return prev;}
	
	E getData(){return data;}
	
	
}
